package com.gf.snoopy.dto;

import java.math.BigDecimal;
import java.util.Date;

import com.gf.snoopy.constants.enumc.InterestType;
import com.gf.snoopy.constants.enumc.PayType;

public class SubProjectDto {
    private Integer id;

    private String name;

    private String shortName;

    private String projectId;

    private String code;

    private String collect;

    private Date interestdate;

    private Date expirydate;

    private BigDecimal rate;

    private Integer interesttype;

    private Integer paytype;

    private Integer paynumber;

    private String credit;

    private Integer ratingId;

    private Date createDate;

    private String memo;
    
    private String interestTypeStr;
    
    private String payTypeStr;
    
    private Integer isTrade;
    
    private Date ratingDate;
    
    private String duration;
    
    private String payDay;
    
    private String payMonth;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getShortName() {
        return shortName;
    }

    public void setShortName(String shortName) {
        this.shortName = shortName == null ? null : shortName.trim();
    }

    public String getProjectId() {
        return projectId;
    }

    public void setProjectId(String projectId) {
        this.projectId = projectId == null ? null : projectId.trim();
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code == null ? null : code.trim();
    }

    public String getCollect() {
        return collect;
    }

    public void setCollect(String collect) {
        this.collect = collect == null ? null : collect.trim();
    }

    public Date getInterestdate() {
        return interestdate;
    }

    public void setInterestdate(Date interestdate) {
        this.interestdate = interestdate;
    }

    public Date getExpirydate() {
        return expirydate;
    }

    public void setExpirydate(Date expirydate) {
        this.expirydate = expirydate;
    }

    public BigDecimal getRate() {
        return rate;
    }

    public void setRate(BigDecimal rate) {
        this.rate = rate;
    }

    public Integer getInteresttype() {
        return interesttype;
    }

    public void setInteresttype(Integer interesttype) {
        this.interesttype = interesttype;
        InterestType parse = InterestType.parse(interesttype);
        interestTypeStr = parse==null?"":parse.getDesc();
    }

    public Integer getPaytype() {
        return paytype;
    }

    public void setPaytype(Integer paytype) {
        this.paytype = paytype;
        PayType parse = PayType.parse(paytype);
        payTypeStr = parse==null?"":parse.getDesc();
    }

    public Integer getPaynumber() {
        return paynumber;
    }

    public void setPaynumber(Integer paynumber) {
        this.paynumber = paynumber;
    }

    public String getCredit() {
        return credit;
    }

    public void setCredit(String credit) {
        this.credit = credit == null ? null : credit.trim();
    }

    public Integer getRatingId() {
        return ratingId;
    }

    public void setRatingId(Integer ratingId) {
        this.ratingId = ratingId;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getMemo() {
        return memo;
    }

    public void setMemo(String memo) {
        this.memo = memo == null ? null : memo.trim();
    }

	public String getInterestTypeStr() {
		return interestTypeStr;
	}

	public void setInterestTypeStr(String interestTypeStr) {
		this.interestTypeStr = interestTypeStr;
	}

	public String getPayTypeStr() {
		return payTypeStr;
	}

	public void setPayTypeStr(String payTypeStr) {
		this.payTypeStr = payTypeStr;
	}

	public Integer getIsTrade() {
		return isTrade;
	}

	public void setIsTrade(Integer isTrade) {
		this.isTrade = isTrade;
	}

	public Date getRatingDate() {
		return ratingDate;
	}

	public void setRatingDate(Date ratingDate) {
		this.ratingDate = ratingDate;
	}

	public String getDuration() {
		return duration;
	}

	public void setDuration(String duration) {
		this.duration = duration;
	}

	public String getPayDay() {
		return payDay;
	}

	public void setPayDay(String payDay) {
		this.payDay = payDay;
	}

	public String getPayMonth() {
		return payMonth;
	}

	public void setPayMonth(String payMonth) {
		this.payMonth = payMonth;
	}
}
